import { useEffect } from "react";

function App () {
  useEffect(() => {
    // 发送网络请求
    async function getData() {
      let res = await fetch('http://geek.itheima.net/v1_0/channels')
      console.log(res);
    }
    getData()
  }, [])
  return (
    <div>

    </div>
  )
}

export default App;
